.class public Lcom/xingbook/park/a/i;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:I

.field private b:[Lcn/a/a/f;

.field private c:Landroid/view/LayoutInflater;

.field private d:Lcom/xingbook/park/a/j;

.field private e:Lcom/xingbook/c/n;


# direct methods
.method public constructor <init>(Landroid/content/Context;I[Lcn/a/a/f;)V
    .locals 1

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Lcom/xingbook/park/a/j;

    invoke-direct {v0, p0}, Lcom/xingbook/park/a/j;-><init>(Lcom/xingbook/park/a/i;)V

    iput-object v0, p0, Lcom/xingbook/park/a/i;->d:Lcom/xingbook/park/a/j;

    iput p2, p0, Lcom/xingbook/park/a/i;->a:I

    iput-object p3, p0, Lcom/xingbook/park/a/i;->b:[Lcn/a/a/f;

    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/a/i;->c:Landroid/view/LayoutInflater;

    invoke-static {p1}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/a/i;->e:Lcom/xingbook/c/n;

    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/a/i;->b:[Lcn/a/a/f;

    array-length v0, v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/a/i;->b:[Lcn/a/a/f;

    aget-object v0, v0, p1

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3

    if-nez p2, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/a/i;->c:Landroid/view/LayoutInflater;

    iget v1, p0, Lcom/xingbook/park/a/i;->a:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    iget-object v1, p0, Lcom/xingbook/park/a/i;->d:Lcom/xingbook/park/a/j;

    const v0, 0x7f0a00c4

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/xingbook/park/a/j;->a:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/xingbook/park/a/i;->d:Lcom/xingbook/park/a/j;

    const v0, 0x7f0a00c5

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/xingbook/park/a/j;->b:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/park/a/i;->d:Lcom/xingbook/park/a/j;

    const v0, 0x7f0a00c3

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, v1, Lcom/xingbook/park/a/j;->c:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/xingbook/park/a/i;->d:Lcom/xingbook/park/a/j;

    invoke-virtual {p2, v0}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    :goto_0
    iget-object v0, p0, Lcom/xingbook/park/a/i;->d:Lcom/xingbook/park/a/j;

    iget-object v0, v0, Lcom/xingbook/park/a/j;->a:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/xingbook/park/a/i;->e:Lcom/xingbook/c/n;

    invoke-virtual {v1}, Lcom/xingbook/c/n;->h()Lcom/xingbook/d/a;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/park/a/i;->b:[Lcn/a/a/f;

    aget-object v2, v2, p1

    invoke-virtual {v2}, Lcn/a/a/f;->c()I

    move-result v2

    invoke-virtual {v1, v2}, Lcom/xingbook/d/a;->j(I)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    iget-object v0, p0, Lcom/xingbook/park/a/i;->d:Lcom/xingbook/park/a/j;

    iget-object v0, v0, Lcom/xingbook/park/a/j;->b:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/park/a/i;->b:[Lcn/a/a/f;

    aget-object v1, v1, p1

    invoke-virtual {v1}, Lcn/a/a/f;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-object p2

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/a/j;

    iput-object v0, p0, Lcom/xingbook/park/a/i;->d:Lcom/xingbook/park/a/j;

    goto :goto_0
.end method
